package com.example.delicioushunter.view.adapter;

import com.example.delicioushunter.view.activity.InfoFragment;
import com.example.delicioushunter.view.activity.MaterialFragment;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class FoodPagerAdapter extends FragmentPagerAdapter {

	public FoodPagerAdapter(FragmentManager fm) {
		super(fm);
	}

	@Override
	public Fragment getItem(int index) {
		switch (index) {
		case 0:
			return new MaterialFragment();
		case 1:
			return new InfoFragment();
		default:
			break;
		}
		return null;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 2;
	}

	

}
